<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<link href="<%=path%>/css/bootstrap.css" rel="stylesheet"
	type="text/css">

<ul class="nav nav-pills">
	<li><a href="<%=path%>/books/BookAction_index.action">首页</a></li>
	<li><a
		href="<%=path%>/books/BookAction_queryAllAmazingBooks.action">精品图书</a></li>
	<li><a href="<%=path%>/books/BookAction_queryAllNewBooks.action">新书上架</a></li>
	<li><a href="<%=path%>/books/BookAction_bookSearchPage.action">图书搜索</a></li>
	<li><a href="<%=path%>/order/OrdersAction_queryAllOrders.action">您的订单</a></li>
	<li><a href="<%=path%>/order/OrdersAction_ShoppingCart.action">购物车</a></li>
	<li><a href="<%=path%>/notes/Notes_allNotes.action">留言榜</a></li>
	<s:if test="#session.loginState == 1">
		<li><a>欢迎！<s:property value="#session.loginUserid" /></a></li>
		<li><a href="<%=path%>/login/Userinfo_logout.action">注销</a>
		<li>
	</s:if>
	<s:else>
		<li><a href="<%=path%>/login/login.jsp">登录</a></li>
		<li><a href="<%=path%>/login/signin.jsp">注册</a></li>
	</s:else>
</ul>
